﻿using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;

namespace Project.Migrations
{
    public partial class init : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "DeptId",
                table: "Test_Person",
                nullable: true,
                oldClrType: typeof(int));

            migrationBuilder.AddColumn<int>(
                name: "TenantId",
                table: "Test_Person",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "TenantId",
                table: "Test_Dept",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "TenantId",
                table: "Test_Person");

            migrationBuilder.DropColumn(
                name: "TenantId",
                table: "Test_Dept");

            migrationBuilder.AlterColumn<int>(
                name: "DeptId",
                table: "Test_Person",
                nullable: false,
                oldClrType: typeof(int),
                oldNullable: true);
        }
    }
}
